package org.leo.dm.util.beanvalidate;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 系统级业务无关通用开关参数配置类
 * 
 * @author xiao_h
 * 
 */
public class CommonConfig {
	private static Logger log = LoggerFactory.getLogger(CommonConfig.class);

	/**
	 * 是否为调试状态debug为调试状态run为正式运行
	 */
	private static String runOrDebug = "run";

	public static void setRunOrDebug(String runOrDebug) {
		CommonConfig.runOrDebug = runOrDebug;
	}

	public static String getRunOrDebug() {
		log.info("系统运行状态：" + runOrDebug);
		return runOrDebug;
	}

}
